package com.test.group6.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.test.group6.domain.EnterpriseInformation;
/**
 *@author jang_rdong 
 *@version 1.1
 * 
 */
@Mapper
public interface EnterpriseReviseMapper {
	/**
	 *@param enterpriseInformation 企业信息
	 *@return {@link Integer}
	 */
	@Update("update enterprise_information " + " set enterprise_name=#{enterpriseInformation.enterpriseName},"
			+ " card_type=#{enterpriseInformation.cardType}," + " card_id=#{enterpriseInformation.cardId},"
			+ " enterprise_date=#{enterpriseInformation.enterpriseDate}," + " capital=#{enterpriseInformation.capital},"
			+ " address=#{enterpriseInformation.address}," + " workes=#{enterpriseInformation.workes}"
			+ " where enterprise_id=#{enterpriseInformation.enterpriseId}")
	public int reviseEnterprise(@Param("enterpriseInformation") EnterpriseInformation enterpriseInformation);

}
